home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 1726 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: uni-paderborn.de!magick
  2. From: magick@uni-paderborn.de (Mario Kemper)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: FlushLibs
  5. Date: 15 Feb 1996 09:31:56 GMT
  6. Organization: Universitaet Paderborn, Germany
  7. Message-ID: <4fuuic$a8n@news.uni-paderborn.de>
  8. References: <1013.6615T463T758@user1.channel1.com> <4fq53n$7p2@news.uni-paderborn.de> <1609.6618T450T2864@user1.channel1.com>
  9. NNTP-Posting-Host: condor.uni-paderborn.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. : >As the OS flushes libs automatically in low memory situations, you normally
  13. : >only need it to see, if a program has memory leaks.
  14.  
  15. : >Using is simple, just starting it. If i'm not wrong, it just allocates a huge
  16. : >amount of memory. If exec can't fulfill the request, it flushes all unused
  17. : >librarys from the system.
  18.  
  19. : Thank you for your reply. I have another question. What is a memory leak?
  20.  
  21. If a program allocates memory, but frees only a part of it, some amount 
  22. of memory stays allocated. To see, if you free all memory, you do the
  23. following:
  24.  
  25. avail flush total (Flushes everything, that is not used, and gives you
  26.                    the total amount of free memory)
  27.  
  28. program           (Start your program, play with it an then quit it)
  29.  
  30. avail total flush (The same as above, there should be no difference in
  31.                    the output).
  32.  
  33. The reason for the flush is, if a program opens a library, the library
  34. stays in memory, until its flushed.
  35.  
  36. --
  37. Mario Kemper                                magick@bundy.lip.owl.de
  38. University of Paderborn (Germany).          magick@uni-paderborn.de
  39.                      
  40.